package com.softeem.idriveserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 文章表
 * @TableName article
 */
@TableName(value ="article")
@Data
public class Article implements Serializable {
    /**
     * 文章ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 标题
     */
    private String title;

    /**
     * 封面图
     */
    private String coverImage;

    /**
     * 正文内容
     */
    private String content;

    /**
     * 发布时间
     */
    private Date publishTime;

    /**
     * 是否可评
     */
    private Integer canComment;

    /**
     * 标签
     */
    private String tags;

    /**
     * 插图集,图片id集合
     */
    private String imgs;

    /**
     * 发布人id
     */
    private Integer uid;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}